From 5fc1b824c406023af68194e60be3d2a46289411e Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Mon, 22 Aug 2016 12:08:49 -0500 Subject: [PATCH] Martin Egge says that Compegps prefers replacing spaces in names with underscores instead of deleting them. Done. --- compegps.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compegps.cc b/compegps.cc index d7422131e..121bc8e0e 100644 --- a/compegps.cc +++ b/compegps.cc @@ -484,7 +484,12 @@ write_waypt_cb(const Waypoint* wpt) if (curr_index != target_index) { return; } - name = (snlen > 0) ? mkshort_from_wpt(sh, wpt) : csv_stringclean(wpt->shortname, " "); + + // Our only output cleansing is to replace + QString cleaned_name(wpt->shortname); + cleaned_name.replace(' ', '_'); + + name = (snlen > 0) ? mkshort(sh, cleaned_name) : cleaned_name; gbfprintf(fout, "W %s A ", CSTR(name)); gbfprintf(fout, "%.10f%c%c ", -- 2.30.2